package com.example.conference.mapper;

import com.example.conference.domain.Course;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseMapper {
    @Select("select * from course")
    List<Course> queryAll();

    @Select("select * from course where course_id = #{courseId}")
    List<Course> queryById(Integer courseId);
}
